// pages/course/course.js
Page({

  /**
   * 页面的初始数据
   */
  data: {

    imgUrls: [
      'https://images.unsplash.com/photo-1551334787-21e6bd3ab135?w=640',
      'https://images.unsplash.com/photo-1551214012-84f95e060dee?w=640',
      'https://images.unsplash.com/photo-1551446591-142875a901a1?w=640'
    ],
    indicatorDots: true,
    autoplay: true,
    interval: 2000,
    duration: 1000,

    travel: [{
        imgSrc: "../../images/food.png",
        text: "food"
      },
      {
        imgSrc: "../../images/game.png",
        text: "game"
      },
      {
        imgSrc: "../../images/travel.png",
        text: "travel"
      },
    ],
    hot: [{
        imgSrc: "../../images/04.jpg",
        name: "遥控飞机",
        info: "不玩白不玩",
        priace: 99.8
      }, {
        imgSrc: "../../images/03.jpg",
        name: "样板机",
        info: "没一点用,买了也是浪费钱，不过收藏价值极低，像这样的样板货，在大陆已经遍地都是了",
        priace: 998.7
      }],
       array: [1, 2, 3, 4]
  },
 

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function() {

  }
})